﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace BabyToys.Models
{
    public class SanPham
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int IdSanPham { get; set; }
        public string MaSP { get; set; }
        public string TenSP { get; set; }
        public string HinhDaiDien { get; set; }
        public string Thumbnail { get; set; }
        public decimal Giaban { get; set; }
        public int SoLuong { get; set; }
        public string MoTaSP { get; set; }
        public decimal GiaKM { get; set; }
        public bool HienThi { get; set; }
        public string ChatLieu { get; set; }
        public string MauSac { get; set; }
        public string KichThuoc { get; set; }
        public Nullable<int> LuotXem { get; set; }
        public int IdDanhMuc { get; set; }
        public int IdThuongHieu { get; set; }

        public virtual ICollection<ChiTietHoaDon> ChiTietHoaDons { get; set; }
        public virtual DanhMuc DanhMuc { get; set; }
        public virtual ICollection<HinhAnh> HinhAnhs { get; set; }
        public virtual ThuongHieu ThuongHieu { get; set; }
    }
}